/**
 * Created by Dalyn on 2017/3/16.
 */
import Relay from "react-relay";

export default class enterpriseTaxRebateList extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { enterpriseTaxRebateList }`;
    }

    getVariables() {
        return {
            argsInput: {
                enId:this.props.enId,
                orderId: this.props.orderId,
                sendStatus:this.props.sendStatus,
                rebateStatus:this.props.rebateStatus,
                pageSize:this.props.pageSize,
                pageNum:this.props.pageNum
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on enterpriseTaxRebateListPayload {
         enterpriseTaxRebateList {
                        authorityId
                        token
                        value
                        userId
                        totalResult
                        enterpriseTaxRebateDomainList{
                            partAPhone
                            partyBEnName
                            rebateUser
                            orderId
                            orderType
                            invoiceMoney
                            rebateStatus
                            sendUserName
                            rebateTime
                            orderAmount
                            partAUserName
                            partyAEnid
                            sendUser
                            updateTime
                            invoiceNum
                            sendTime
                            rebateMoney
                            rebateUserName
                            partyBEnid
                            partyAEnName
                            contract
                            expressSheet
                            invoiceFileJson
                            sendStatus
                            partAUserId
                            traderName
                            expressName
                            createTime
                            partAAddress
                        }
                        errorCode
                    }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
                fragment on enterpriseTaxRebateListPayload {
                    enterpriseTaxRebateList {
                        authorityId
                        token
                        value
                        userId
                        totalResult
                        enterpriseTaxRebateDomainList {
                            partAPhone
                            partyBEnName
                            rebateUser
                            orderId
                            orderType
                            invoiceMoney
                            rebateStatus
                            sendUserName
                            rebateTime
                            orderAmount
                            partAUserName
                            partyAEnid
                            sendUser
                            updateTime
                            invoiceNum
                            sendTime
                            rebateMoney
                            rebateUserName
                            partyBEnid
                            partyAEnName
                            contract
                            expressSheet
                            invoiceFileJson
                            sendStatus
                            partAUserId
                            traderName
                            expressName
                            createTime
                            partAAddress
                        }
                        errorCode
                    }
                }
            `]
        }];
    }
}
